createRandomDirectory

fun createRandomDirectory(prefix: String = ""): PreparedProvider<Path>(source)

Creates a random directory, which is automatically deleted at the end of the test.

Example

val buildDirectory by createRandomDirectory()

test("A test") {
buildDirectory() // do something with it
}